package com.lzxuni.modules.dataAcquisition.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 追溯链条-环节-过程-指标
 * </p>
 *
 * @author wzx
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_chain_link_process_index")
public class ChainLinkProcessIndex implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    /**
     * 过程id
     */
    private String processId;

    private String parentId;

    /**
     * 指标名称
     */
    private String indexName;

    /**
     * 指标代码
     */
    private String indexCode;

    /**
     * 计量单位
     */
    private String unit;

    /**
     * 指标类型
     */
    private String indexType;

    /**
     * 采集类型
     */
    private String collectionType;

    /**
     * 采集方式
     */
    private String collectionMode;

    /**
     * 循环采集
        0 : 是
        1 : 否
     */
    private Integer cyclicAcquisition;

    /**
     * 描述
     */
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(exist = false)
    private String processName;

    @TableField(exist = false)
    private ProductIndex productIndex;
}
